from __future__ import absolute_import, unicode_literals

import base64
import os

from celery import shared_task

from recruitment.celery import app
from .dingtalk import send, send_message, SendFile_content
from .dingtalk import SendFile


@shared_task
def send_dingtalk_message(message):
    print('tasks_message', message)
    send(message)


@shared_task
def send_file(path):

    SendFile(path)


@shared_task
def send_msg(content):
    send_message(content)


# @shared_task
# def send_file_content(content):
#     SendFile_content(content=content)


# @app.task
# def send_dingtalk_message(message):
#     print('tasks_message', message)
#     send(message)